package com.next.aappublicapp;

import android.app.ListActivity;
import android.os.Bundle;
import android.view.MenuItem;

import com.google.analytics.tracking.android.EasyTracker;
import com.next.aappublicapp.util.MenuUtil;

public class BaseListActivty extends ListActivity{

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		EasyTracker.getInstance().activityStart(this);
		
	}
	
    @Override
    public void onStop() {
        super.onStop();
        EasyTracker.getInstance().activityStop(this);
    }
    /**
     * Event Handling for Individual menu item selected
     * Identify single menu item by it's id
     * */
    @Override
    public boolean onOptionsItemSelected(MenuItem item)
    {
         Boolean returnValue = MenuUtil.onOptionsItemSelected(item, this);
         if(returnValue == null){
        	 return super.onOptionsItemSelected(item); 
         }
         return returnValue;
    }   
}
